package com.bk;

public class Person {
	private int age;
	private String nameString;

	public Person(int age, String nameString) {

		this.age = age;
		this.nameString = nameString;
	}

	public String toString() {
		return "Person [age=" + age + ", nameString=" + nameString + "]";
	}

	@Override
	public boolean equals(Object obj) {
		Person person = (Person) obj;
		
		return this.age == person.age;
	}
}
